package com.orm.mybatis.shiro.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Set;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = -8170373721622447082L;

    private Long id;

    private String userName;

    private String password;

    private String Salt;
    /**
     * 用户对应的角色集合
     */
    private Set<Role> roles;

    }
